From: Colin Walters Date: Thu, 2 Jul 2009 05:02:46 +0000 (-0400) Subject: Wire up search up/down X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11239 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=96a2747e0b8347b70703052fc1c07db980d097bc;p=gnome-shell.git Wire up search up/down This is not a complete fix; the search selection will not cross the apps/docs boundary. But it's good enough until we have a more final search design. --- diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 478719fe9..e16423e2c 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -314,9 +314,19 @@ Dash.prototype = { // too, but there doesn't seem to be any flickering if we first select // something in one display, but then unset the selection, and move // it to the other display, so it's ok to do that. - // TODO: add the right logic + if (me._resultsDocsSection.display.hasSelected()) + me._resultsDocsSection.display.selectUp(); + else if (me._resultsAppsSection.display.hasItems()) + me._resultsAppsSection.display.selectUp(); + else + me._resultsDocsSection.display.selectUp(); } else if (symbol == Clutter.Down) { - // TODO: add the right logic + if (me._resultsDocsSection.display.hasSelected()) + me._resultsDocsSection.display.selectDown(); + else if (me._resultsAppsSection.display.hasItems()) + me._resultsAppsSection.display.selectDown(); + else + me._resultsDocsSection.display.selectDown(); } return false; });